package com.thread.demo.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduleService {

    @Scheduled(cron = "* * * * * ?")
    private void job() {
        System.out.println("定时任务开始执行");
    }

}
